<p>该小类零件详细信息</p>
<table id="details" class="table table-hover">
    <tr>
        <td><span name="total_bigname" num="{{ num[3] }}">大类名称：</span></td>
        <td><span class="total_bigname">{{ num[3] }}</span></td>
    </tr>
    <tr>
        <td><span name="total_smallname" num="{{ num[4] }}">小类名称：</span></td>
        <td class="total_smallname">{{ num[4] }}</td>
    </tr>
    <tr>
        <td><span name="total_unitprice" num="{{ num[0] }}">单价：</span></td>
        <td class="total_unitprice">{{ num[0] }}</td>
    </tr>
    <tr>
        <td><span name="total_num" num="{{ num[1] }}">数量：</span></td>
        <td class="total_num">{{ num[1] }}</td>
    </tr>
    <tr>
        <td><span name="total_total" num="{{ num[2] }}">总价：</span></td>
        <td class="total_total">{{ num[2] }}</td>
    </tr>
</table>
<br>
{#<style>#}
{#    .t1{#}
        {#margin-right: 20px;#}
{#        width: 95%;#}
{#    }#}
{#    .t1 #button1{#}
{#        width: 100%;#}
{#    }#}
{##}
{#</style>#}


<table id="t1" class="table table-hover">
    <tr class="title3">
        <td>序号</td>
        <td>日期</td>
        <td style="display: none">大类名称</td>
        <td style="display: none">小类名称</td>
        <td>操作方</td>
        <td>增减</td>
        <td>单价</td>
        <td>金额</td>
        <td>操作</td>
    </tr>
    <tr>
        <td class="big3" style="display: none">{{ bigname }}</td>
        <td class="small3" style="display: none">{{ smallname }}</td>
        <!--最新一条记录的行号和单价 用于填写单价和校验价格改变-->
        <td class="unitprice3" style="display: none">{{ unitprice }}</td>
        <td class="rowid3" style="display: none">{{ rowid }}</td>
    </tr>
    {% for i in data %}
        <tr name="{{ i[7] }}">
            <td>{{ loop.index }}</td>
            <td>{{ i[0] }}</td>
            <td style="display: none">{{ i[1] }}</td>
            <td style="display: none">{{ i[2] }}</td>
            <td>{{ i[3] }}</td>
            <td>{{ i[4] }}</td>
            <td>{{ i[5] }}</td>
            <td>{{ i[6] }}</td>
            <td style="width: 80px; padding: 2px">
                <button style="width: 100%" type="button" class="smallname_button btn btn-outline-success" id="button1" name="{{ i[7] }}">填入</button>
            </td>
        </tr>
    {% endfor %}
</table>